<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="jquery.css">
</head>
<body>
    <p>finish</p>
    <ul>
        <li><span>H1</span></li>
        <li><span>H2</span></li>
        <li><span>H3</span></li>
        <li><span>H4</span></li>
        <li><span>H5</span></li>
        <li><span>H6</span></li>
    </ul>
    <script src="https://cdn.staticfile.net/jquery/1.10.2/jquery.min.js"></script>
    <script src="jquery.js"></script>
    <!-- <script>
       $(function(){
    $("p").on('click',function(){
        $(this).hide();
    })

    var ids = '';
    var $listItems = $('li');

    $listItems.on('mouseover click', function() {
        ids = this.id;
        $listItems.children('span').remove(); // 这里应该只移除当前元素的子span，而不是所有
        $(this).append('<span class="priority">' + ids + '</span>');
    });

    $listItems.on('mouseout', function() {
        $(this).children('span').remove();
    });
})
        </script> -->
</body>
</html>